<?php

namespace App\Service\Activity;

use App\Models\Activity\ShopOrderActivityFeedbackModel;

class ShopOrderActivityFeedbackService
{
    /**
     * 获取活动参与状态
     *
     * @param int $activityId
     * @param int $shopId
     * @return bool
     */
    public static function getAppliedStatus(int $activityId, int $shopId): bool
    {
        $info = ShopOrderActivityFeedbackModel::query()
                                              ->where('activityId', $activityId)
                                              ->where('shopId', $shopId)
                                              ->first();

        return (bool)$info;
    }
}
